home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / networking / pgpuam / sources / asipchallenge.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.3 KB  |  34 lines

  1. //    ASIPChallenge.h - base class for Appleshare IP Challenge Object
  2. // 
  3. // Apple Macintosh Developer Technical Support
  4. // Written by:  Vinnie Moscaritolo
  5. //
  6. //  Copyright (work in progress)  Apple Computer, Inc All rights reserved.
  7. //
  8. // You may incorporate this sample code into your applications without
  9. // restriction, though the sample code has been provided "AS IS" and the
  10. // responsibility for its operation is 100% yours.  However, what you are
  11. // not permitted to do is to redistribute the source as "DSC Sample Code"
  12. // after having made changes. If you're going to re-distribute the source,
  13. // we require that you make it clear in the source that the code was
  14. // descended from Apple Sample Code, but that you've made changes.
  15. // 
  16.  
  17. #ifndef _H_TASIPCHALLENGE
  18. #define _H_TASIPCHALLENGE
  19.  
  20. #include "TPGPkey.h"
  21.  
  22. void     MakeChallenge(TPGPkey *, StringPtr outBuf);
  23.  
  24. void     ReplyToChallenge(TPGPkey *serverKey, const char *passPhrase, TPGPkey *clientKey, StringPtr inBuf, StringPtr outBuf);
  25.  
  26. Boolean VerifyChallenge(TPGPkey *, StringPtr origChallenge, StringPtr inBuf);
  27.  
  28. PGPError ReplyToCounterChallenge(StringPtr promptString, StringPtr fpBuf, StringPtr inBuf, StringPtr outBuf);
  29.  
  30. Boolean VerifyCounterChallenge(TPGPkey *theKey, StringPtr origCounterChallenge, StringPtr inBuf);
  31.     
  32.  
  33. #endif
  34.